use axum::Json;

#[derive(serde::Serialize)]
pub struct Data {
    message: String,
    count: i32,
    username: String,
}

pub async fn get_json() -> Json<Data> {
    let data = Data {
        message: "Hello, World!".to_owned(),
        count: 200,
        username: "John Doe".to_owned(),
    };
    Json(data)
}